package codeComposition;

import java.util.ArrayList;

public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ArrayList<Element> argus = new ArrayList<Element>();
		ReferenceElement argu1 = new ReferenceElement("argu1");
		ReferenceElement argu2 = new ReferenceElement("argu2");
//		argus.add(argu1);
//		argus.add(argu2);
		argus.add(new VarAssignElement(argu1, argu2));
		
		ConstructElement ce5 = new ConstructElement("func");
		ConstructElement ce6 = new ConstructElement("func", 0);
		ConstructElement ce7 = new ConstructElement("func", argus);
		ConstructElement ce8 = new ConstructElement("func", argus, 0);
		
		FunctionElement func5 = new FunctionElement(ce5, 1);
		FunctionElement func6 = new FunctionElement(ce6, 0);
		FunctionElement func7 = new FunctionElement(ce7, 1);
		FunctionElement func8 = new FunctionElement(ce8, 0);
		
		ClassElement classelement = new ClassElement("a", "parent");
		classelement.add(new VarAssignElement(argu1, argu2));
		classelement.add(func5);
		classelement.add(func6);
		classelement.add(func7);
		classelement.add(func8);
		
		String[] im = {"a","b"};
		ImportElement ime = new ImportElement("a",im);
		ModelElement me = new ModelElement("haha");
		me.addImport(ime);
		me.addExpression(new VarAssignElement(argu1, argu2));
		me.addClass(classelement);

//		System.out.println(classelement.toString() + im.toString() + me.toString());
		System.out.println(me.toString());
	}

}
